package BusinessLogic;

import Data.UserData;
import Data.permissionData;

public class AdjustUsersController implements IAdjustUsersController{
	private AdjustUsersModel iaum = new AdjustUsersModel();
	
	public AdjustUsersModel getAdjustUsersModel(){
		return iaum;
	}
    
	public void setAdjustUsersModel(AdjustUsersModel iAUm){
		iaum=iAUm;
	}
	
	public AdjustUsersController(){
		iaum=new AdjustUsersModel();
	}
	



	@Override
	public permissionData getPermissionInformationControl(int userID) {
		return iaum.getPermissionInformation(userID);
	}

	@Override
	public UserData getUserInformationControl(int userID) {
		return iaum.getUserInformation(userID);
	}

	@Override
	public String getUserNameByIDControl(int userID) {
		return iaum.getUserNameByID(userID);
	}

	@Override
	public String getUserPasswordByIDControl(int userID) {
		return iaum.getUserPasswordByID(userID);
	}

	@Override
	public int getUserPermissionByIDControl(int userID) {
		return iaum.getUserPermissionByID(userID);
	}

	public boolean saveUserDataControl() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String searchPermissionInformationByIDControl(int userID) {
		return iaum.searchPermissionInformationByID(userID);
	}

	@Override
	public String searchUserInformationByIdControl(int userID) {
		return iaum.searchUserInformationById(userID);
	}

	@Override
	public boolean startUpdateControl() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean AdjustUsersControl() {
		return iaum.AdjustUsers();
	}

	@Override
	public boolean addUserControl( String userName,int userId,String userPassword, int permission) {
		return iaum.addUser( userName,userId,userPassword, permission);
	}

	@Override
	public boolean removeUserControl(String userID) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteUserByIDController(int ID) {
		// TODO Auto-generated method stub
		return iaum.deleteUserByID(ID);
	}

}
